<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<html>
	<head>
		<title>释放单详情-金融风险管理系统</title>
		<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
        <link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
		</script>
	</head>
	<body>
	<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
	    </span>合格证管理&gt;&gt;换证&gt;&gt;查看
  	</div>
  	
  	
  	<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
			<tr>
				<td align="center" valign="top" bgcolor="#FFFFFF">
					<div class="xt_main_right_center">
							<table width="100%" border="0" cellpadding="1" cellspacing="1">
								<tr>
									<td class="left-td-width-bg">
										<font color="red" size="2">* </font>金融机构：
									</td>
									<td width="30%" class="bline" align="left">
										${entity.financial.name}
									</td>
									<td class="left-td-width-bg">
										<font color="red" size="2">* </font>店名：
									</td>
									<td width="45%" class="bline" align="left">
										<s:property value='entity.shop.shopName'/>
									</td>
								</tr>
								<tr>
									<td class="left-td-width-bg">
										渠道：
									</td>
									<td width="30%" class="bline" align="left">
										${entity.brand.name}
									</td>
									<td class="left-td-width-bg">
										申请单号：
									</td>
									<td width="45%" class="bline" align="left">
										${entity.applyNum}
									</td>
								</tr>
								<tr>
									<td class="left-td-width-bg">
										<font color="red" size="2">* </font>申请人：
									</td>
									<td width="30%" class="bline" align="left">
										${entity.applyUser.realName}
									</td>
									<td class="left-td-width-bg">
										附件上传：
									</td>
									<td width="45%" class="bline" align="left">
										<s:iterator value="attachs" >
											<div style="display: inline">
												<a href="${contextPath}/attach/download.do?id=<s:property value="id"/>" ><s:property value="name"/></a>&nbsp;
											</div>
										</s:iterator>
									</td>
								</tr>
									<tr>
									<td class="left-td-width-bg">
										换出总金额：
									</td>
									<td width="30%" class="bline" align="left">
										<span id="supplyPrice"><s:property value="formatAmount(entity.supplyPrice)"/></span>
									</td>
									<td class="left-td-width-bg">
										换入总金额：
									</td>
									<td width="45%" class="bline" align="left">
										<span id="inMoney"><s:property value="formatAmount(entity.inSupplyPrice)"/></span>
									</td>
								</tr>	
								<tr style="padding-bottom: 20px">
									<td class="left-td-width-bg">
										<font color="red" size="2">* </font>换出车架号：
									</td>
									<td class="bline" align="left" colspan="3">
										<textarea id="sel_cf_vals" rows="4" class="input_textarea_width90_readOnly" style="width: 660px" readonly="readonly" ><s:property value='names'/></textarea>
									</td>
								</tr>
								
								<tr style="padding-bottom: 20px">
			<td class="left-td-width-bg">
				申请理由：
			</td>
			<td class="bline" align="left" colspan="3" >
				 <textarea name="msg" cols="30" rows="5" id="textfield" disabled="disabled"><s:property value="entity.msg"/></textarea>
			</td>
		</tr>
								
							</table>
<s:if test="entity.id != null">
	<br/>
		        <table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr>
				    <td height="25" align="left"><font color="#0066CC"><strong>换入合格证：</strong></font></td>
				    <td height="25" align="right">
				    	&nbsp;
		            </td>
				  </tr>
				</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
	  <tr> 
	    <td width="3%" class="top-td-width-bg">序号</td>
	    <td width="12%" class="top-td-width-bg">4S店</td>
	    <td width="6%" class="top-td-width-bg">车型</td>
	    <td width="8%" class="top-td-width-bg">合格证号</td>
	    <td width="8%" class="top-td-width-bg">车架号</td>
	    <td width="6%" class="top-td-width-bg">供货价</td>
	    <td width="6%" class="top-td-width-bg">订单号</td>
	    <td width="6%" class="top-td-width-bg">贷款品种号</td>
	    <td width="6%" class="top-td-width-bg">贷款起始日</td>
	    <td width="6%" class="top-td-width-bg">贷款到期日</td>
	  </tr>
	 <s:iterator value="entity.inCertificateRenews" status="st" >
		<tr height="26" align="center" bgcolor="#FFFFFF">
			<td align="center"><s:property value="#st.index+1"/></td>
		    <td align="center">(<s:property value="shop.shopMark"/>)<s:property value="shop.shopName"/></td>
		    <td align="center"><s:property value="motorcycleType"/></td>
		    <td align="center"><s:property value="certificationNum"/></td>
		    <td align="center"><s:property value="chassis"/></td>
		    <td align="center"><s:property value="formatAmount(supplyPrice)"/></td>
		    <td align="center"><s:property value="orderNumber"/></td>
		    <td align="center"><s:property value="draft"/></td>
		    <td align="center"><s:date name="draftBeginDate" format="yyyy-MM-dd"/></td>
		    <td align="center"><s:date name="draftEndDate" format="yyyy-MM-dd"/></td>
		</tr>
	</s:iterator>
	<tr bgcolor="#F9FCEF"> 
	 <td height="36" colspan="17" align="center">
			<%@ include file="/WEB-INF/view/common/pagination.jsp"%>
	 </td>
	</tr>
	</table>
		  
</s:if>
	<!-- 审核记录开始 -->	
	<s:if test="workflow!=null&&workflow.operates!=null">
		<br/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
		    <td height="25" align="left"><font color="#0066CC"><strong>流程操作记录：</strong></font></td>
		    <td height="25" align="right">
		    </td>
		  </tr>
		</table> 
		<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
		  <tr> 
		    <td width="3%" class="top-td-width-bg">序号</td>
		    <td width="20%" class="top-td-width-bg">操作人</td>
		    <td width="20%" class="top-td-width-bg">操作类型</td>
		    <td width="40%" class="top-td-width-bg">描述</td>
		    <td width="17%" class="top-td-width-bg">操作时间</td>
		  </tr>
		 <s:iterator value="workflow.operates" status="stx" >
			<tr height="26" align="center" bgcolor="#FFFFFF" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#FFFFFF';"> 
			 	<td align="center"><s:property value="#stx.index+1"/></td>
			    <td align="center"><s:property value="operater.realName"/></td>
			    <td align="center"><s:property value="type.name"/></td>
			    <td align="center"><s:property value="description"/></td>
			    <td align="center"><s:property value="operateDate"/></td>
			</tr>
		</s:iterator>
		</table>
		<br/>
	</s:if>
					</div>
				</td>
				
			</tr>
	</table>
	
	</body>
</html>